<script type="text/javascript" charset="utf-8">
$(function() {

	//jquery slideUp
	$("fieldset.expansible legend").click(function () {
	      if ($(this).siblings().is(":hidden")) {
	        $(this).siblings().show("slow").end().removeClass("toggle-close").addClass("toggle-open").parent().removeClass("noborder");
	      } else { //close
	        $(this).siblings().slideUp().end().removeClass("toggle-open").addClass("toggle-close").parent().addClass("noborder");
	      }
	    });
	 $("fieldset.expansible legend").addClass("toggle-open");


});
</script>

<div class="success-message"><?=$this->successMessage; ?></div>
<div class="error-message"><?=$this->errorMessage; ?></div>

<?if ($this->justRegistered == 1) :?>
<?=t(447) ?>
<?endif ?>

<form accept-charset="UTF-8" action="<?= $this->escape($this->form->getAction()) ?>"
      method="<?= $this->escape($this->form->getMethod()) ?>">
<?=$this->form->overallError; ?>
<fieldset class="expansible">
<legend><span><?if($this->type == 2) :?><?=t(448) ?> <?else:?><?=t(484)?><?endif?>
</span></legend>
<table>
<?if(isset($this->form->fullname)):?>
<tr>
<td width="120px"> <?=t(461) ?>:</td>
<td><?= $this->form->fullname; ?></td>
</tr>
<?endif?>

<?if(isset($this->form->gender)):?>
<tr>
<td width="120px" > <?=t(462) ?>: </td>
<td> <?= $this->form->gender; ?> </td>
</tr>
<?endif?>

<?if(isset($this->form->company_name)) :?>
<tr>
<td><?=t(472) ?>:</td>
<td><?= $this->form->company_name; ?></td>
</tr>
<?endif?>

<?if(isset($this->form->company_address)) :?>
<tr>
<td><?=t(473) ?>:</td>
<td><?= $this->form->company_address; ?></td>
</tr>
<?endif?>

<?if(isset($this->form->signature)):?>
<tr>
<td  width="120px"><?=t(429) ?>:</td>
<td><?= $this->form->signature; ?></td>
</tr>
<?endif?>

<?if(isset($this->form->company_description)):?>
<tr>
<td  width="120px"><?=t(482) ?>:</td>
<td><?= $this->form->company_description; ?></td>
</tr>
<?endif?>
</table>
</fieldset>

<fieldset  class="expansible">
<legend><span><?=t(825) ?></span></legend>
<table>
<tr>
<td  width="120px"><?=t(777) ?>:</td>
<td><?= $this->form->address; ?></td>
</tr>
<!--
<tr>
<td><?=t(460) ?>:</td>
<td><?= $this->form->address; ?>TODOTODO</td>
</tr>
-->

<tr>
<td><?=t(750) ?>:</td>
<td><?= $this->form->phone; ?> (If many, separate by ; )</td>
</tr>

<?if(isset($this->form->fax)) :?>
<tr>
<td><?=t(751) ?>:</td>
<td><?= $this->form->fax; ?></td>
</tr>
<?endif?>

<tr>
<td  width="120px"><?=t(463) ?>:</td>
<td><?= $this->form->website; ?></td>
</tr>

</table>
</fieldset>

<fieldset  class="expansible">
<legend><span><?=t(457) ?></span></legend>
<table>

<tr>
<td  width="120px"><?=t(458) ?>:</td>
<td><?= $this->form->language; ?></td>
</tr>

<tr>
<td><?=t(459) ?>:</td>
<td><?= $this->form->theme; ?></td>
</tr>

</table>
</fieldset>

<input type="hidden" name="id" value="<?=$this->id; ?>" />
<?= $this->form->submit; ?> 

</form>
<div style="min-height:20px"></div>